package org.saratogaschools.edd.firefighter.shared.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(detachable = "true")
public class Fire implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	private String encodedKey;
	
	@Persistent
	private String managingDepartmentKey;

	@Persistent
	private double latitude;

	@Persistent
	private double longitude;
	
	@Persistent
	private String address;

	@Persistent
	private boolean extinguished;
	
	@Persistent
	private List<String> fighters;
	
	public Fire() {
		this.extinguished = false;
		this.fighters = new ArrayList<String>();
	}
	
	public String getManagingDepartmentKey() {
		return this.managingDepartmentKey;
	}
	
	public void setManagingDepartmentKey(String managingDepartmentKey) {
		this.managingDepartmentKey = managingDepartmentKey;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public boolean isExtinguished() {
		return extinguished;
	}

	public void setExtinguished(boolean extinguished) {
		this.extinguished = extinguished;
	}
	
	public String getEncodedKey() {
		return this.encodedKey;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public List<String> getFighters() {
		return fighters;
	}

}
